<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
    </script>
</head>

<body>
    <div id="times">2008</div>
    <ul>
        <li>12</li>
        <li>13</li>
        <li>14</li>
        <li>15</li>
        <li>16</li>
    </ul>
    <ol>
        <li>qwe</li>
        <li>qwe</li>
        <li>sad</li>
        <li>zxc</li>
        <li>sda</li>
    </ol>
    <ol>
        <li>qwe</li>
        <li>qwe</li>
        <li>sad</li>
        <li>zxc</li>
        <li>sda</li>
    </ol>
    <script>
        var timer = document.getElementById("times");
        console.log(timer);
        console.dir(timer);
        var str = document.getElementsByTagName("li");
        console.log(str);
        console.log(str[0]);
        var list = document.getElementsByTagName("ol")
        console.log(list[1].getElementsByTagName("li"));
    </script>
</body>

</html>